import request from '@/utils/request'

export const interfaceListService = (pid)=>{
    return request.get('/interfaces/list?pid='+pid)
}

export const interfaceAddService = (interfaceData, pid)=>{
    return request.post('/interfaces?pid='+pid,interfaceData)
}

export const interfaceDeleteService = (id,pid)=>{
    return request.delete('/interfaces?id='+id + '&pid='+pid)
}

export const interfaceUpdateService = (interfaceData,pid)=>{
    return request.put('/interfaces?pid='+pid,interfaceData)
}